<template>
	<ul>
		<li>消息编号:{{id}}</li>
		<li>消息标题:{{title}}</li>
		<li>a:{{a}}</li>
		<li>b:{{b}}</li>
	</ul>
</template>

<script>
	export default {
		props:['id', 'title', 'a', 'b'],
		name:'Detail-com',
		mounted() {
			const res = this.$route
			const { params: { id, title} } = res
			console.log(id,title);
		},
	}
</script>